package pojo;

/**
 * 单个商品订单信息
 */
public class OrderGoodsInfo {
    private int id ;
    private String oid; //订单编号
    private int gid; //商品编号
    private int count; //下单数量

    public OrderGoodsInfo() {
    }

    public OrderGoodsInfo(String oid, int gid, int count) {
        this.oid = oid;
        this.gid = gid;
        this.count = count;
    }


    public OrderGoodsInfo(int id, String oid, int gid, int count) {
        this.id = id;
        this.oid = oid;
        this.gid = gid;
        this.count = count;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "OrderGoodsInfo{" +
                "id=" + id +
                ", oid=" + oid +
                ", gid=" + gid +
                ", count=" + count +
                '}';
    }
}
